package com.xuecheng.content.api;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.servlet.ModelAndView;

/**
 * @author shiminghui
 * @date 2024/8/30 18:54
 * @description: TODO
 */
@Controller
public class FreeMarkerTest {
    @GetMapping("/freemarker/test")
    public ModelAndView test() {
        ModelAndView modelAndView = new ModelAndView();
        modelAndView.setViewName("test");
        modelAndView.addObject("name", "xiaoming");
        return modelAndView;
    }

}
